<?php
/**
 * 手续上传要求
 */
namespace AuctionBack\Logic;



class ProceduresRequirementLogic {

    protected $autoCheckFields = false;

    protected $sid = null;
    protected $model = null;


    public function __construct($sid)
    {
        $this->sid = $sid;
        $this->model = D("ProceduresRequirement","Model");
    }

    /**
     * 添加手续上传要求
     * @param $dataList
     * @return bool|string
     */
    public function addDataList($dataList)
    {
        return $this->model->addAll($dataList);
    }

    /**
     * 根据过户状态获取过户手续上传列表
     * @param $transferStatus
     * @return mixed
     */
    public function getListByTransferStatus($transferStatus)
    {
        $map = [
            'sid' => $this->sid,
            'transfer_status' => $transferStatus
        ];

        return $this->model->where($map)->select();
    }
}